void LoadTilesAsYouMove();
void LoadSurroundingTiles(word *linerenderField, long *position, word layoutIndex, int nametable);
void LoadSurroundingTiles2(word *linerenderField, long *position, word layoutIndex, int nametable);
void sub_69F4(word *linerenderField, long *position, word layoutIndex, int nametable);

void LoadTilesFromStart();
void DrawChunks(long *screenPos, int num, word layoutIndex);

word Calc_VRAM_Pos(long *position, int offsety, int offsetx);

inline void DrawTiles_LR(long *screenPos, int tileIndex, long v1, long v2, int num, word layoutIndex);
void DrawTiles_LR_2(long *screenPos, int tileIndex, long v1, long v2, long v3, int num, word layoutIndex);
inline void DrawTiles_TB(long *screenPos, int tileIndex, long v1, long v2, int num, word layoutIndex);
void DrawTiles_TB_2(long *screenPos, int tileIndex, long v1, long v2, long v3, int num, word layoutIndex);

void DrawTiles(int, int, word*);
word *DrawBlocks(long*, long, long, word);

void DrawText(char* text, int len, int x, int y);
void DrawText_NoScroll(char* text, int len, int x, int y);
void DrawText_NoScrollExt(char* text, int len, int x, int y, word *ram);
char *PCtoSonicText(char *pcText, int len);


